home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Computer Role.xpl < prev    next >
Text File  |  2004-02-08  |  1KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Hardware\System Settings"
  5. "NAME"="Power Options"
  6. "OSVERSION"="10111"
  7. "VERSION"="1.11"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Role"
  10. "DESCRIPTION 1"="Specify the typical work role of your Computer:"
  11. "DESCRIPTION 2"="Enter 0 for Home/Office Desk."
  12. "DESCRIPTION 3"="Enter 1 for Portable/Laptop."
  13. "DESCRIPTION 4"="Enter 2 for Presentation. (Win2000 Only) "
  14. "DESCRIPTION 5"="Enter 3 for Always On."
  15. "DESCRIPTION 6"="Enter 4 for Minimal Power Management. (Win2000 Only)"
  16. "DESCRIPTION 7"="Enter 5 for Maximum Battery Life. (Win2000 Only)"
  17. "AUTHOR"="Ojatex@aol.com"
  18. "CONTACTURL"="http://members.aol.com/ojatex/"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"="Portables are still #1 ;)"
  21. "COMMENT 2"="Thanks to john godfrey!"
  22.  
  23. sP="HKCU\Control Panel\PowerCfg\CurrentPowerPolicy"
  24.  
  25. 'Called when the Plugin is started
  26.  
  27.  
  28. Sub Plugin_Initialize 
  29.  i=RegReadValue(sP)  
  30.  Call SetUIElement(1,i)
  31. End Sub
  32.  
  33. 'Called when the Plugin should validate the Data the user has entered
  34. SUB Plugin_CheckData(ElementIndex)
  35. END SUB
  36.  
  37. 'Called when the Plugin should apply the changes
  38. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  i=GetUIElement(1)
  40.  
  41.     Call RegWriteValue(sP,i,1)
  42.  
  43.  
  44. END SUB
  45.  
  46. SUB Plugin_Terminate
  47.  
  48. END SUB
  49.  
  50.